package com.powernode.ssm.pojo.po;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class UserLoginAttempt {
    private Long id;
    private String ip; // 登录IP
    private Integer shortAttempts; // 短期尝试次数，如60秒内
    private Integer longAttempts; // 长期尝试次数，如10分钟内
    private Integer isBlocked; // 是否被封禁：0-否，1-是
    private LocalDateTime shortExpireTime; // 短期尝试过期时间
    private LocalDateTime longExpireTime; // 长期尝试过期时间
    private LocalDateTime blockExpireTime; // 封禁过期时间
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}